package example.characterstring.p04;

/**
 * @author 17976
 */
public class StringReplaceEmp {
    public static void main(String[] args) {
        String s = "Hello World";
        System.out.println(s.replace('H', 'W'));
        System.out.println(s.replaceFirst("He", "Wa"));
        System.out.println(s.replaceAll("He", "Ha"));
    }
}
